package com.ruoyi.system.service;

import com.ruoyi.system.domain.Awards;
import com.ruoyi.system.domain.CheckDetail;
import com.ruoyi.system.domain.CheckList;

import java.util.List;
import java.util.Map;

/**
 * 审核Service接口
 *
 * @author Edward
 * @date 2024-04-16
 */
public interface ICheckListService
{
    /**
     * 查询审核
     *
     * @param id 审核主键
     * @return 审核
     */
    public CheckList selectCheckListById(Long id);

    /**
     * 查询审核列表
     *
     * @param checkList 审核
     * @return 审核集合
     */
    public List<CheckList> selectCheckListList(CheckList checkList);

    /**
     * 新增审核
     *
     * @param checkList 审核
     * @return 结果
     */
    public int insertCheckList(CheckList checkList);

    /**
     * 修改审核
     *
     * @param checkList 审核
     * @return 结果
     */
    public int updateCheckList(CheckList checkList);

    /**
     * 批量删除审核
     *
     * @param ids 需要删除的审核主键集合
     * @return 结果
     */
    public int deleteCheckListByIds(Long[] ids);

    /**
     * 删除审核信息
     *
     * @param id 审核主键
     * @return 结果
     */
    public int deleteCheckListById(Long id);

    public String jointString(String name, Integer type);

    void addTwoCheck(Long projectId, Long userId, int type,String projectName);
    //队长审核
    void addLeaderCheck(Long projectId, Long userId, int type,String projectName);

    List<CheckList> determineProject(CheckList check);

    CheckList seeCheck(CheckList check);

    List<CheckList> selectCheckListByCheckerId(Long userId);

    void addCheckAwards(Awards awards);

    CheckList seeAwardsCheck(CheckList check);

    void updateOtherCheckList(Long projectId);

    void updateOtherCheck(Map<String, Object> map);

    CheckList seeClaimCheck(CheckList check);

    int checkDeptPoints(long awardsId,int type, int points, Long deptId);

    int checkUserPoints(long awardsId,int points, Long userId);
}
